-- Winter Anathema (c) v.v.balashoff

local Engine = require('leviathan/Engine')

--local engine

function love.load()
    -- TODO profiler
    -- love.profiler = require('libs/profile/profile')
    -- love.profiler.start()
    -- love.frame = 0
    engine = Engine()
end

function love.update(dt)
    -- TODO profiler
    -- love.frame = love.frame + 1
    -- if love.frame%100 == 0 then
    --     love.report = love.profiler.report(20)
    --     love.profiler.reset()
    -- end
    engine:update(dt)
end

function love.draw()
    -- TODO profiler
    -- if love.report then
    --     print(love.report)
    -- end
    engine:draw()
end

function love.quit()
    engine:quit()
end
